package com.ruoyi.zhmk.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人员信息对象 zhmk_person
 * 
 * @author ruoyi
 * @date 2021-06-24
 */
public class ZhmkPerson extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 人员ID */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;

    /** 人员类型 */
    @Excel(name = "人员类型")
    private Integer userType;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phonenumber;

    /** 性别 */
    @Excel(name = "性别")
    private Integer sex;

    /** 年龄 */
    @Excel(name = "年龄")
    private Integer age;

    /** 头像路径 */
    @Excel(name = "头像路径")
    private String avatar;

    /** 人员状态 */
    @Excel(name = "人员状态")
    private Integer userStatus;

    /** 临时人员最后使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "临时人员最后使用时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date pwdUpdateDate;

    /** 请假状态 */
    @Excel(name = "请假状态")
    private Integer sendStatus;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserType(Integer userType) 
    {
        this.userType = userType;
    }

    public Integer getUserType() 
    {
        return userType;
    }
    public void setPhonenumber(String phonenumber) 
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() 
    {
        return phonenumber;
    }
    public void setSex(Integer sex) 
    {
        this.sex = sex;
    }

    public Integer getSex() 
    {
        return sex;
    }
    public void setAge(Integer age) 
    {
        this.age = age;
    }

    public Integer getAge() 
    {
        return age;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setUserStatus(Integer userStatus) 
    {
        this.userStatus = userStatus;
    }

    public Integer getUserStatus() 
    {
        return userStatus;
    }
    public void setPwdUpdateDate(Date pwdUpdateDate) 
    {
        this.pwdUpdateDate = pwdUpdateDate;
    }

    public Date getPwdUpdateDate() 
    {
        return pwdUpdateDate;
    }
    public void setSendStatus(Integer sendStatus) 
    {
        this.sendStatus = sendStatus;
    }

    public Integer getSendStatus() 
    {
        return sendStatus;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("userType", getUserType())
            .append("phonenumber", getPhonenumber())
            .append("sex", getSex())
            .append("age", getAge())
            .append("avatar", getAvatar())
            .append("userStatus", getUserStatus())
            .append("pwdUpdateDate", getPwdUpdateDate())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("sendStatus", getSendStatus())
            .append("deptId", getDeptId())
            .toString();
    }
}
